package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 库存商品类
 */
@Data
@ApiModel(value = "库存商品类")
@TableName("t_goods")
public class GoodsBean {
    /*
    （商品编号(字符串)，商品名称，商品图片，类别（电脑产品、安防产品、打印扫描设备、办公耗材），品牌，库存量，最新采购价，建议销售价）
     */
    @ApiModelProperty(value = "商品编号")
    @TableId(value = "pk_goodsId")
    private Integer id;
    @ApiModelProperty(value = "商品名")
    @TableField("g_name")
    private String name;
    @ApiModelProperty(value = "商品图片")
    @TableField("g_imgPath")
    private String imgPath;
    @ApiModelProperty(value = "类别")
    @TableField("g_type")
    private String type;
    @ApiModelProperty(value = "品牌")
    @TableField("g_brand")
    private String brand;
    @ApiModelProperty(value = "库存数量")
    @TableField("g_num")
    private Integer num;
    @ApiModelProperty(value = "最新采购价")
    @TableField("g_lastPrice")
    private Integer lastPrice;
    @ApiModelProperty(value = "建议销售价")
    @TableField("g_suggestPrice")
    private Integer suggestPrice;

    public GoodsBean() {
    }

    public GoodsBean(String name, String imgPath, String type,
                     String brand, Integer num, Integer lastPrice, Integer suggestPrice) {
        this.name = name;
        this.imgPath = imgPath;
        this.type = type;
        this.brand = brand;
        this.num = num;
        this.lastPrice = lastPrice;
        this.suggestPrice = suggestPrice;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(Integer lastPrice) {
        this.lastPrice = lastPrice;
    }

    public Integer getSuggestPrice() {
        return suggestPrice;
    }

    public void setSuggestPrice(Integer suggestPrice) {
        this.suggestPrice = suggestPrice;
    }

    @Override
    public String toString() {
        return "\nGoodsBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", type='" + type + '\'' +
                ", brand='" + brand + '\'' +
                ", num=" + num +
                ", lastPrice=" + lastPrice +
                ", suggestPrice=" + suggestPrice +
                '}';
    }
}
